package rubik.fitness;

import rubik.Cube;

public class EdgesCornersFitness implements IFitnessFunc {

	@Override
	public double getFitness(Cube cube) {
		return cube.countCorrectCorners() + cube.countCorrectEdges();
	}

	@Override
	public double getMaxFitness() {
		return 20;
	}
	

}
